const app = getApp() //获取app.js这个文件
const util=require('../../utils/util.js')//导入util.js文件
Page({
  data: {
    TopIndex:0,
    Slist:[
      {
        id:1,
        name:'免费技巧',
        num:'5'
      },
      {
        id:2,
        name:'交通常识',
        num:'31'
      },
      {
        id:3,
        name:'关键字找答案',
        num:'50'
      },
      {
        id:4,
        name:'常识题',
        num:'21'
      },
      {
        id:5,
        name:'看选项答题',
        num:'12'
      },
      {
        id:6,
        name:'记忆题',
        num:'43'
      },
      {
        id:7,
        name:'交通信号灯',
        num:'28'
      },
      {
        id:8,
        name:'地面标线',
        num:'32'
      },
      {
        id:9,
        name:'看图讲解',
        num:'50'
      },
      {
        id:10,
        name:'安全文明',
        num:'45'
      },
      {
        id:11,
        name:'高速公路',
        num:'33'
      },
      {
        id:12,
        name:'交通标志',
        num:'50'
      },
      {
        id:13,
        name:'其他',
        num:'45'
      },
      {
        id:14,
        name:'指示仪表',
        num:'50'
      },
      {
        id:15,
        name:'文字题',
        num:'1400'
      },
      {
        id:16,
        name:'图片题',
        num:'786'
      },
      {
        id:17,
        name:'正确题',
        num:'580'
      },
      {
        id:18,
        name:'错误题',
        num:'501'
      },
      {
        id:19,
        name:'判断题',
        num:'1081'
      },
      {
        id:20,
        name:'单选题',
        num:'1106'
      },
      {
        id:21,
        name:'新规题',
        num:'529'
      },
    ],
    Clist:[
      {
        name:'道路交通安全法律、法规和规章',
        num:'共1105题'
      },
      {
        name:'交通信号',
        num:'共403题'
      },
      {
        name:'安全行车、文明驾驶基础知识',
        num:'共476题'
      },
      {
        name:'机动车驾驶操作相关基础知识',
        num:'共165题'
      },
      {
        name:'交通事故救护常识',
        num:'共37题'
      },
    ]

  },
  onLoad(options) {

  },

  changstyle:function(e){
    let index=e.currentTarget.dataset.index;
    console.log(index)
    this.setData({
      TopIndex:index
    })
  },
})